{include file="`$CMS_TPL_DIR`filemanager/tab_menu.tpl" mode="gallery"}
{foreach name="fileloop" from=$files item=file}
	{if $file.type=="image"}
		<div class="divIMfile" id="img{$smarty.foreach.fileloop.iteration}" style="float:left;width:90px;margin:5px;text-align:center;border:1px solid #E0E0E0;padding:2px;overflow:hidden;">
			<div class="divIMfileList">
				{resize_img src="`$MEDIA_WEB``$dir``$file.filename`" width="80" height="80" alt="`$file.filename`" stretch="0"}<br />
				{$file.filename|truncate:20:"..."|htmlentities}
			</div>
			<div class="divIMfileHover" style="background: url({$CMS_WEB_DIR}icons/22x22/{$file.icon} top right no-repeat;text-align:left;">
					<a href="javascript:void(0);" onclick="FileManagerFileDetails('{$dir}','{$file.filename}');" class="navi">
						<strong>{$smarty.config.FileManager_label_name}:</strong> {$file.filename|htmlentities}<br />
						<strong>{$smarty.config.FileManager_label_size}:</strong> {$file.size|htmlentities}<br />
					</a>
			</div>
		</div>
	{/if}
{/foreach}
<br style="clear:both;" />